package com.dmtt.util;

import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component("response")
public class Response implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private EnumStatus state; //success,
	private String message;
	private Object responseText; 

	/**
	 * return
	 */
	public String getState() {
		return state.getValue();
	}

	/**
	 * @param state
	 *            :
	 */
	public void setState(EnumStatus state) {
		this.state = state;
	}

	/**
	 * return
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message
	 *            :
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * return 
	 */
	public Object getResponseText() {
		return responseText;
	}

	/**
	 * @param responseText:
	 */
	public void setResponseText(Object responseText) {
		this.responseText = responseText;
	}
}
